<template>
  <div class="timeLineBox">
    <div class="fujianShenCha">
      <div class="fujianList">
        <div class="bgFujian" v-for="(item, index) in fujianList" :key="index">
          <div class="fujianTitle">
            {{ index + 1 }}.{{ item.fileName }}
          </div>
          <div class="fujianContent">
            <div class="fujianName">
              <i class="el-icon-document icon"></i>
              <el-tooltip class="item" effect="dark" :content="item.fileName" placement="top-start">
                <p class="fujianNamePdf">{{ item.fileName }}</p>
              </el-tooltip>
            </div>
            <div class="isHover">
              <span v-if="!onlySee" @click="chaKanItem(item)">
                {{
                item.opinionStatus == "AUDIT"
                ? "审查"
                : item.opinionStatus == "VIEW"
                ? "查看"
                : "审查"
                }}
              </span>
              <span v-if="onlySee" @click="chaKanItem(item)">查看</span>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "fujianList",
  props: ["fujianList","onlySee"],
  data() {
    return {
    };
  },
  watch: {
    
  },
  methods: {
    //查看附件
    chaKanItem(item) {
      console.log(this.isLook,item)
      this.$emit("fuzhiFunc",item)
    },
  },
  created() {
  }
};
</script>

<style lang="scss" scoped>
/deep/ .el-tabs__nav-wrap::after {
  height: 1px;
}

.fujianShenCha {
  overflow: auto;
}

.fujianList {
  margin-top: 30px;
  float: left;
  width: 100%;
  box-sizing: border-box;
  margin-right: 3%;
}

.chaKanBox {
  float: left;
  width: 70%;
  box-sizing: border-box;
}

.fujianList_item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  margin-left: 30px;
}

.fujianList_item p {
  width: 300px;
  font-size: 14px;
  font-weight: bold;
  text-align: left;
  color: #444;
}

.dachuShenChaBox {
  position: relative;
}

.dachuShenCha {
  position: absolute;
  right: 0;
  top: 4px;
  display: flex;
}

.dachuShenCha .dachuShenCha_item {
  font-size: 14px;
  color: #4d4d4d;
  cursor: pointer;
}

.dachuShenCha .dachuShenCha_item:first-child {
  margin-right: 35px;
}

.showDetail {
  display: flex;
  justify-content: space-between;
}

.chaKanBox_right_select {
  display: flex;
  align-items: center;
}

.chaKanBox_right_select p {
  font-size: 14px;
  color: #444;
  margin-right: 15px;
}

.chaKanBox_left {
  width: 70%;
  margin-right: 3%;
  height: calc(100vh - 250px);
}

.chaKanBox_right {
  width: 27%;
}

.chaKanBox_right_item {
  margin-bottom: 20px;
}

.chaKanBox_right_item_textarea {
  width: 100%;
}

.shenchaItem {
  display: flex;
  align-items: center;
}

.shenchaItem p {
  width: 230px;
  font-size: 14px;
  color: #444;
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
}

.shenChaTanKuang .el-dialog {
  width: 500px;
}

.shenchaItem_item_textarea {
  width: 100%;
}

.shenchaItem_item_noFlex p {
  font-size: 14px;
  color: #444;
  font-weight: bold;
  text-align: left;
  white-space: nowrap;
}

.shenchaItem_small {
  margin-top: 20px;
}

.shenchaItem_small p {
  width: 100px;
}

.shenchaItem_item_input {
  width: 260px;
}

.el-tree-node__label {
  margin-left: 10px;
}

.redText {
  color: red;
}

.bgFujian {
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.fujianTitle {
  font-size: 16px;
  color: #333;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
}

.fujianContent {
  margin-left: 30px;
  background: #f5f8fa;
  width: 90%;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fujianName {
  font-size: 14px;
  font-weight: bold;
  color: #606266;
  cursor: pointer;
  margin-right: 20px;
  display: flex;
  align-items: center;
  width: 80%;
}

.fujianName .fujianNamePdf {
  margin: 0px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.fujianName .icon {
  display: block;
  font-size: 20px;
  margin-right: 10px;
  color: #409eff;
}

.isHover {
  color: #409eff;
  font-size: 13px;
  width: 50px;
}

.isHover span {
  padding: 0px 3px;
  margin: 3px 5px 3px 0;
  cursor: pointer;
  display: block;
  float: left;
}
</style>